﻿using System;

namespace GameX.MapEngine
{
    class RandomMapProvider : MapProvider
    {
        Random m_randomGenerator = new Random();

        protected override Tile GetTileAt(uint x, uint y)
        {
            TileType[] tileTypes = (TileType[])Enum.GetValues(typeof(TileType));

            TileType selectedTileType = tileTypes[m_randomGenerator.Next(tileTypes.Length - 1)];

            return new Tile(selectedTileType);
        }
    }
}
